package com.spboot.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import com.spboot.user.service.UserService;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

	@Autowired
	UserService userSerivce;

	// 注冊
	@GetMapping("/reg")
	public String register() {
		userSerivce.register();
		return "ok";
	}
}
